﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.Master" AutoEventWireup="true" CodeBehind="Position.aspx.cs" Inherits="Legazpi.Payroll.Web.Admin.Position" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">        
        <script src="<%=ResolveUrl("~/Scripts/Employee/Position.js")%>" type="text/javascript"></script>
        
        <script language="javascript" type="text/javascript">
            $(document).ready(function () {
                $('#Positiontbl').dataTable({
                    "bJQueryUI": true,
                    'sPaginationType': 'full_numbers',
                    'iDisplayLength': 50,
                    "bPaginate": true,
                    "bProcessing": true,
                    "aoColumnDefs": [
                        { "bSortable": false, "aTargets": [6]}],                             
                    "bServerSide": false
                });
            });
        </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
        <h2>
            Positions
        </h2>
        <hr /><br />
         <input type="button" id="btnAddPosition" value="Add New" />
         <br>
         <br>
        <asp:Repeater ID="repeater" runat="server">
            <HeaderTemplate>
                <table id="Positiontbl" cellpadding="1" cellspacing="0" 
                    border="0" class="display">
                  <thead>
                    <tr>
                        <th align="left">Id</th>
                        <th align="left">Code</th>
                        <th align="left">Description</th>
                        <th align="left">Incentive</th>
                        <th align="left">Retirement</th>
                        <th align="left">Uniform Allowance</th>                        
                        <th align="left"></th>
                    </tr>
                  </thead>
                <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                  <td><%# Eval("Id") %></td>
                  <td><%# Eval("Code")%></td>
                  <td><%# Eval("Description")%></td>
                  <td><%# Eval("Incentive")%></td>
                  <td><%# Eval("Retirement")%></td>
                  <td><%# Eval("UniformAllowance")%></td>                  
                  <td>
                    <input type="button" value="Update" class="btnUdpate" data-id="<%# Eval("Id") %>" />
                    <input type="button" value="Delete" class="btnDelete" data-id="<%# Eval("Id") %>" />
                  </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                    </tbody>
                </table>
            </FooterTemplate>
        </asp:Repeater>        
</asp:Content>
